import React from 'react'
import {Link} from 'react-router-dom';
import {useAuth} from './Context3'

const Header3 = () => {
    const {isLogin} = useAuth();
    return (
        <div>
            <Link to='/'>首页</Link>
            {isLogin===true?<button>退出</button>:<Link to='./login'>登录</Link>}
        </div>
    )
}

export default Header3
